<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../common/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../common/easyui/themes/icon.css">
		
	<script type="text/javascript" src="../common/easyui/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="../common/easyui/jquery.easyui.min.js"></script>
	<!-- 中文库 在easyui后 -->
	<script type="text/javascript" src="../common/easyui/locale/easyui-lang-zh_CN.js"></script>
<title>管理</title>


<script type="text/javascript">

function submitForm(){  
    $('#ff').form('submit', 
    		{  
        url:'../servlet/user.login',  
        success:function(data){  
        	 var data = eval('(' + data + ')');  // change the JSON string to javascript object
            if(data.success)  
            					{
            	location.href="welcome.html";
            }else
            				{
            	$.messager.alert('信息','登录失败！'); 
            						//alert("登录失败！");
            				}
       		 }  
    });  
} 
	
	
	



</script>


</head>
<body>

<div align="center"> 
 <h2>用户登录</h2>  
    <div class="demo-info" style="margin-bottom:10px">  
         
        <div>爆破器材管理系统</div>  
    </div>  
      
    <div class="easyui-panel" title="登录" style="width:300px;height:150px; background:#fafafa;padding:10px;">  
        
        <form id="ff"  method="post">  
        <input type="hidden" name="isuser" value="1">
            <table>  
                <tr>  
                    <td>帐号:</td>  
                    <td><input class="easyui-validatebox" name="user.account" type="text" data-options="required:true"></input></td>  
                </tr>  
                <tr>  
                    <td>密码:</td>  
                    <td><input class="easyui-validatebox" name="user.password" type="password" data-options="required:true"></input></td>  
                </tr>  
                
                <tr>  
                    <td></td>  
                    <td><input class="easyui-linkbutton" type="button" value="登录" onclick="submitForm()"></input>
                    											
                    </td>  
                </tr>  
            </table>  
        </form>  
    </div>  
    </div>

</body>
</html>